-
-
Notifications
You must be signed in to change notification settings - Fork 62
Description
As we discussed on Discord, I’ve been looking into the speed issues with the copy_template function and have come across some of the following findings.
It’s worth mentioning, based on the timings I shared on Discord, that the slowdown isn’t caused by a single function in this process. Instead, there are several operations in different parts that individually take around 60 to 70 milliseconds.
The Igniter library takes around 200 to 400 milliseconds for a single file, which is great, especially if the script isn’t of a continuous type.
This issue mainly arises for use cases like mine, where it takes about 80 to 350–400 milliseconds per file, resulting in a total time > of around 32 seconds on a system with 16 GB of RAM and a 7700K CPU.
Tracking
Igniter.create_new_file:{11, 56813, 0, 182955}- As you see in this function we have 2 big number
56813and182955 - The second one is for
maybe_formatfunction - Inside the
formatfunction you have these numbers{2876, 68006, 2662, 0, 108013, 1} - After that inside this function
with_evaled_configsyou have68002
All the function in this junction, each of them has 2 or 3 big number approximately!
Thank you in advance