Home » Community » Coffee corner » Congratulations on "moveable"
Congratulations on "moveable" [message #48727] |
Wed, 30 August 2017 17:13 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
So I was experimenting with a shitty container I have written and the Insert method.
First, I replaced the assignment operator with a move operator. The worst case scenario became 33 times faster. It is really fast if you don't need to allocate an copy memory around.
Then I implemented something similar to Moveable and the same scenario became 88 times faster that the original copy based one. A single memcpy is very fast it turns out.
Now I need to double check and triple check the results since they are too good to be true! Maybe I made a mistake.
Still, congratulations on the idea. It is a very good one!
|
|
|
Goto Forum:
Current Time: Sun Apr 28 23:31:43 CEST 2024
Total time taken to generate the page: 0.03327 seconds
|