Skip to content

Commit

Permalink
[new release] index and index-bench (1.3.1)
Browse files Browse the repository at this point in the history
CHANGES:

## Fixed

- Reduce allocations during merge (mirage/index#274, mirage/index#277)

- Protect concurrent syncs with a lock (mirage/index#309)

- Fixed a performance issue for `Index.sync` when there is a blocking merge in
  progress: the `log_async` file was not cached properly and fully reloaded
  from disk every time. (mirage/index#310)

- Release the merge lock if a merge raises an exception (mirage/index#312)

- Added fsync after `Index.clear` to signal more quickly to read-only instances
  than something has changed in the file (mirage/index#308)

## Changed

- Specialise `IO.v` to create read-only or read-write instances. (mirage/index#291)

- `clear` removes the files on disks and opens new ones containing only the
  header. (mirage/index#288, mirage/index#307, mirage/index#317)
  • Loading branch information
samoht committed Apr 29, 2021
1 parent 4c81724 commit c54b951
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/index-bench/index-bench.1.3.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
opam-version: "2.0"
maintainer: "Clement Pascutto"
authors: ["Clement Pascutto" "Thomas Gazagnaire" "Ioana Cristescu"]
license: "MIT"
homepage: "https://github.com/mirage/index"
bug-reports: "https://github.com/mirage/index/issues"
dev-repo: "git+https://github.com/mirage/index.git"

build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name] {with-test}
]

depends: [
"ocaml" {>= "4.03.0"}
"cmdliner"
"dune" {>= "2.7.0"}
"fmt"
"index"
"metrics"
"metrics-unix"
"ppx_deriving_yojson"
"re"
"stdlib-shims"
"yojson"
"ppx_repr"
]

synopsis: "Index benchmarking suite"
url {
src:
"https://github.com/mirage/index/releases/download/1.3.0-27-gf528c18f8/index-1.3.1.tbz"
checksum: [
"sha256=1f5393324f7a4f83e23c8ffc34beda83848b1daffa39a9e21cba94ac5f31db70"
"sha512=3665e42872a3fee4c1eda5bb7f483dc05966ecfaedad34f8cdc69a7ca47a98c3c3edacf9b0e2b54a7440598da7bc840b98697ccf0ebf6d383bb1d23ad4826cf1"
]
}
x-commit-hash: "f528c18f806380df14cf0f306d2879792c7174d6"
57 changes: 57 additions & 0 deletions packages/index/index.1.3.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
opam-version: "2.0"
maintainer: "Clement Pascutto"
authors: [
"Craig Ferguson <craig@tarides.com>"
"Thomas Gazagnaire <thomas@tarides.com>"
"Ioana Cristescu <ioana@tarides.com>"
"Clément Pascutto <clement@tarides.com>"
]
license: "MIT"
homepage: "https://github.com/mirage/index"
bug-reports: "https://github.com/mirage/index/issues"
dev-repo: "git+https://github.com/mirage/index.git"
doc: "https://mirage.github.io/index/"

build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name] {with-test}
]

depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "2.7.0"}
"repr" {>= "0.2.0"}
"ppx_repr"
"fmt"
"logs"
"mtime" {>= "1.0.0"}
"cmdliner"
"progress"
"semaphore-compat"
"jsonm"
"stdlib-shims"
"alcotest" {with-test}
"crowbar" {with-test & >= "0.2"}
"re" {with-test}
]
synopsis: "A platform-agnostic multi-level index for OCaml"
description:"""
Index is a scalable implementation of persistent indices in OCaml.

It takes an arbitrary IO implementation and user-supplied content
types and supplies a standard key-value interface for persistent
storage. Index provides instance sharing: each OCaml
run-time can share a common singleton instance.

Index supports multiple-reader/single-writer access. Concurrent access
is safely managed using lock files."""
url {
src:
"https://github.com/mirage/index/releases/download/1.3.0-27-gf528c18f8/index-1.3.1.tbz"
checksum: [
"sha256=1f5393324f7a4f83e23c8ffc34beda83848b1daffa39a9e21cba94ac5f31db70"
"sha512=3665e42872a3fee4c1eda5bb7f483dc05966ecfaedad34f8cdc69a7ca47a98c3c3edacf9b0e2b54a7440598da7bc840b98697ccf0ebf6d383bb1d23ad4826cf1"
]
}
x-commit-hash: "f528c18f806380df14cf0f306d2879792c7174d6"

0 comments on commit c54b951

Please sign in to comment.