General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
MrAbrazildo
Kantan Coding
comments
Comments by "MrAbrazildo" (@MrAbrazildo) on "The 3 Laws of Writing Performant Code" video.
0:55, on compiler options, try to pass the flag -O2 or -O3: it'll do that simplification for you. 3:15, the fastest approach here would be to have an enum like integers. This would dismiss any search. ie. C: enum completedStatuses { REFUND=0, CAPTURED, FAILED, CANCELED, MAX_STATUSES }; // All integers. if (labs (status) < completedStatuses.MAX_STATUSES) { // labs just to grant that status is not negative. // do some logic for completed orders... }
1
@naehalmulazim Why? map[string] is crazily slow.
1