Skip to content
#

intervals

Here are 97 public repositories matching this topic...

nickrobinson251
nickrobinson251 commented Apr 9, 2021

The behaviour for printing a AnchoredInterval{Day(-1)} is:

julia> dt = DateTime(2016, 8, 11, 2)
2016-08-11T02:00:00

julia> AnchoredInterval{Day(-1)}(dt)
AnchoredInterval{Day(-1), DateTime, Open, Closed}(DateTime("2016-08-11T02:00:00"))

julia> print(ans)
(DE 2016-08-11 02:00:00]

And this style of print is available for AnchoredInterval{T(-1)} if T is Day, `Mont

RaphaelS1
RaphaelS1 commented Dec 4, 2019
x = sample(1000)
y = sample(1000)

sx = Set$new(x)
sy = Set$new(y)

microbenchmark::microbenchmark(
  setdiff(x, y),
  sx - sy,
  unit = "s"
)

Gives a mean time in seconds of:

setdiff(x,y) = 4.681405e-05
sx - sy = 1.639163e-02

A considerable difference. The additional bloat is due to a lot of checks that sort through the correct dispatch methods and use tricks for

Improve this page

Add a description, image, and links to the intervals topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the intervals topic, visit your repo's landing page and select "manage topics."

Learn more