mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Update README.md
This commit is contained in:
@@ -207,6 +207,21 @@ map = ChronicleMapBuilder.of(Integer.class, CharSequence.class)
|
||||
```
|
||||
In this example above we have set 1000 entries.
|
||||
|
||||
### Size of space reserved on disk
|
||||
|
||||
In linux, if you looked at the size of the 'file', it will report the used entry size, so if you have just added one entry, it will report the size of this entry, however Windows it will report the reserved size which is the number-of-entries * entry-size.
|
||||
|
||||
so on linux, if your type
|
||||
```
|
||||
ls -l file
|
||||
|
||||
// It shows you the extents. If you use
|
||||
|
||||
du file
|
||||
|
||||
// It shows you how much is actually used. Can you confirm you used du?
|
||||
```
|
||||
|
||||
### Chronicle Map Interface
|
||||
The Chronicle Map interface adds a few methods above an beyond the standard ConcurrentMap, The ChronicleMapBuilder can also be used to return the ChronicleMap, see the example below :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user