Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

73
Vistas
JS, implement Map with optimized data layout

I'm writing a voxel octree engine whose memory is very intensive.

There will be enormous of indexes data on those octree nodes while I planning to use map data structure on those indexes.

However, Since I know my map key and value could be fit in 4 bytes per pair while if I use a built-in Map it will consume at least 16 bytes per pair, Since the number is 8 bytes each.

Any ideas or library on Map with memory-intensive in mind?


Update: Another idea I could go with..

I could possibly use the sorted array instead of a map.

And manage the array using ArrayBuffer instead of vanilla js array;

So I could access the element in O(log N) but will be able to granularity control the data layout.


Will leave the topic open cause it seems useful if anyone encountered this situation.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda