0
votes
Vote UpVote

A slightly optimized TDateTime functions (YearOf, MonthOf, DayOf) …

The Wiert Corner – Besides the optimised versions of these functions, I learned the most from these comments:  The DivMod should be faster. Should really be a single division. The CPU instruction will give you both div and mod from a single instruction. No point doing the divide twice. http://stackoverflow.com/questions/20270596/how-do-i-implement-an-efficient-32-bit-divmod-in-64-bit-code Updated code, added lookup-table optimizations, Lazarus / FPC support and test project: https://github.com/davidberneda/FastDateTime +Javier Hernández In the past I used AQTime but now I’m using ...
Favorite? Off-Topic? jpluimers @ 2017-07-13 13:04

Statistics

Visits: 703
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)