Comments (6)
Breakdown with Intel VTune (lowered to 500_000
records because I was impatient):
We may want to cache the Windows timezone data instead of calling GetTimeZoneInformationForYear
on every conversion.
from chrono.
Can I assume that you're on Windows?
from chrono.
That would be currect. Currently working on POC on windows. Haven't tried on linux yet.
from chrono.
Checked in WSL:
> cat /etc/os-release
Ubuntu 22.04.4 LTS
...
> rustc --version
rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball)
> cargo --version
cargo 1.75.0
> cargo run --release
convert to utc: 3.764427601s
convert to local: 25.472681589s
Much better but still slower then c# version.
from chrono.
With EnumDynamicTimeZoneInformation
we can get the timezone data.
Edit: With GetDynamicTimeZoneInformationEffectiveYears
we can get the range of years to get timezone data for.
from chrono.
We may want to cache the Windows timezone data instead of calling
GetTimeZoneInformationForYear
on every conversion.
I guess we should generalize the cache mechanism we use on the Unix side?
from chrono.
Related Issues (20)
- Version 0.4.36 has breaking changes with 0.4.35 HOT 2
- Compile error using most recent version of chrono 0.4.36 HOT 2
- Deprecations causing large amount of churn, and result in less elegant code HOT 3
- the trait bound `DateTime<Utc>: OptionFrom/ToWasmAbi` is not satisfied when targeting wasm32 HOT 3
- 0.5: Consider using smaller types for arguments
- Make Weekday::num_days_from public HOT 2
- Add a method to the `Offset` trait to return DST info HOT 5
- 0.5: Add a `LocalOffset` type HOT 4
- Verification of published packages HOT 2
- `gh-pages` branch HOT 3
- Releases has problematic naming of 0.4.8 release which puts it at the top HOT 3
- 0.4.37 semver-incompatibly removes trait bounds on `DateTime` HOT 10
- How do I get the raw underlying bytes of a `NaiveDate` HOT 4
- Parsing from string to DateTime - input is not enough for unique date and time HOT 3
- TimeDelta always returning a PT in seconds HOT 2
- NaiveDate::years_since wrong documentation
- Saturating operations HOT 9
- Datetime Parse Error when converting rfc2822 date to chrono Datetime HOT 2
- Wasm support for NaiveTime, NaiveDate and alike HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrono.