dxfjs / writer

A JavaScript dxf generator written in TypeScript.

Home Page:https://dxf.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stringify Performance

hschmiedhofer opened this issue · comments

Hi,

for some automation stuff i am working on, i did a quick test-run of your very nice package.
My intention is to compose a DXF from several sub-drawings, which already works nicely.
These sub-drawings can become quite detailed, though.
My current test-setup parses and inserts entities from an 8MB DXF into an instance of your writer class, which is real quick.

However, for the final write-to-disc, i need to stringify(), which unfortunately takes about 30sec.

Do you think there's a way of speeding things up here?

Hi

I will investigate, 30s is a lot.
I need an example to reproduce.

I will investigate, 30s is a lot. I need an example to reproduce.

Thank you so much! I sent you the zipped example project via your email.

Hi,
Now it's about 2s please check (v2.0.8) and close this issue if you are satisfied.
regards

It's even quicker than that here! Thanks a lot, @tarikjabiri ! :)

@hschmiedhofer very nice 🎉❤