Skip to content

use Atomic value to improve performance #59

@siddontang

Description

@siddontang

Now we use RwLock<f64>, but we can use Atomic U64 like golang client to improve the performance.

But be careful that now the stable rust only supports AtomicUsize, so we must use this in 64 bit system only.

And we should do benchmark to see whether this can improve the performance or not.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions