Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Performance differences of record creation methods #425
Given this record:
And the following methods:
and this driver script:
I see the following results:
It appears that once you account for the base function call overhead, creating records and then filling them in takes ~13s for 50000000, but using the typed record syntax takes 28s. I've seen this somewhat when looking at memory allocations as well, I believe the difference is because the 'nicer' syntax ends up allocating a temporary record that it has to merge into the final record.. so it takes 2x the time because it does 2x the allocations and 2x the work.