chuigda-wasteland / Pr65

决战的时刻到了!
The Unlicense
3 stars 0 forks source link

Use parking lot? #1

Closed SchrodingerZhu closed 4 years ago

SchrodingerZhu commented 4 years ago

According to my benchmark (a quadtree with multithread update), facilities in parking_lot are much faster than std.

SchrodingerZhu commented 4 years ago

You may need to use nightly rust to gain the speedup though. As HLE feature is only supported in nightly

chuigda commented 4 years ago

The synchronization manners are all considered temporary, we will introduce MVCC in further commits. What's more, I wouldn't like much external dependencies, while the performance of rust std may get better as time goes by.