Viewing profile — MishraAnurag
MishraAnurag
HN member- Joined
- Fri, Mar 29, 2013, 11:15 PM UTC
- HN karma
- 106
- Public activity
- 15 items
- HN profile
- View on Hacker News ↗
About MishraAnurag
No profile information was provided.
Recent public activity
- story
-
comment
Comment #10109338
Great post. Soft errors have a different meaning altogether in electronics. It's an interesting read. https://en.m.wikipedia.org/wiki/Soft_error
- story
- story
- story
-
comment
Comment #7209651
Looks like a scam.. The app icon for Flappy Bird is nowhere to be found on that screen.
-
comment
Comment #6347729
Using the relevant SQLite implementation directly cuts down that time in half to about 3.5-3.7 seconds over a few runs.
-
comment
Comment #6347645
That's a fair point. NSDateFormatter is fast enough and you should never replace it for anything else unless you know for sure that it's a problem. Well that goes for any optimizat…
-
comment
Comment #6345242
I'd suggest using timegm instead of mktime, or set the TZ environment variable to UTC to ensure all implementations return an identical date. I ran the same tests and found that th…
-
comment
Comment #6345156
Are you using mktime to get the unix timestamp? That might be the slower part as opposed to strptime.
-
comment
Comment #6345133
A link to the source code is present in the article. You can find it here - https://gist.github.com/AnuragMishra/6474321 The NSDateFormatter is already being cached. That was my fi…
-
comment
Comment #6345111
That's interesting. I'm not sure of the significance of that year or how that relates to the algorithm in Meeus' book. This web page talks about the date algorithms in Meeus' book …
-
comment
Comment #6345084
That was to make a fair comparison between the two approaches since NSDateFormatter's dateFromString gives an NSDate, while SQLite was handing back an integer. But you are right. I…
- story
- story