Skip to content

memory consumption of UUID strings. #13069

@aardgoose

Description

@aardgoose
Description of the problem

UUID generation in Math.js produces strings stored as concatenated strings in Firefox and Chrome.

On Chrome 40bytes are used for each component of the final string, creating heap overhead. In my application with thousands of objects this adds up.

For example, Heap size using Chrome

r89 as is: 95MB
r89 with uuid flattened with String().toUpper(): 66MB.

I see similar results using Firefox.

Three.js version
  • Dev
  • [x ] r89
  • ...
Browser
  • All of them
  • [x ] Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions