taoensso.nippy.utils documentation

ba-concat

(ba-concat ba1 ba2)

ba-split

(ba-split ba idx)

ba=

(ba= x y)

bench

macro

(bench nlaps {:keys [nlaps-warmup nthreads as-ns?], :or {nlaps-warmup 0, nthreads 1}} & body)
Repeatedly executes body and returns time taken to complete execution.

bytes-class

bytes?

(bytes? x)

case-eval

macro

(case-eval e & clauses)
Like `case` but evaluates test constants for their compile-time value.

memoized

(memoized cache f & args)
Like `(partial memoize* {})` but takes an explicit cache atom (possibly nil)
and immediately applies memoized f to given arguments.

readable?

repeatedly-into

macro

(repeatedly-into coll n & body)
Like `repeatedly` but faster and `conj`s items into given collection.

serializable?

time-ns

macro

(time-ns & body)
Returns number of nanoseconds it takes to execute body.