• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / orangelight / acce7e84-70ee-4ef0-a486-bfb9bdffe1e7
95%
main: 95%

Build:
Build:
LAST BUILD BRANCH: 4948-recently-bookmarked
DEFAULT BRANCH: main
Ran 27 Oct 2025 01:52AM UTC
Jobs 1
Files 221
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Oct 2025 01:42AM UTC coverage: 95.356%. Remained the same
acce7e84-70ee-4ef0-a486-bfb9bdffe1e7

Pull #5268

circleci

sandbergja
Improve performance of online_holding_note?

* Rename method for clarity
* Symbolize names to reduce memory allocations
* Use any? with a block, rather than collect, so we
  don't need to iterate through every holding if we
  get a match before that
* Check in a microbenchmark
* Upgrade the json gem to a newer version that has
  some performance optimizations

Microbenchmark before:
```
$ bundle exec ruby benchmarks/app/controllers/concerns/orangelight/catalog.rb
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
                        36.000 i/100ms
Calculating -------------------------------------
                        363.356 (± 1.4%) i/s    (2.75 ms/i) -      1.836k in   5.053892s
23428 objects allocated
```

Microbenchmark after:
```
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24]
Warming up --------------------------------------
                        45.000 i/100ms
Calculating -------------------------------------
                        462.924 (± 1.5%) i/s    (2.16 ms/i) -      2.340k in   5.056152s
12617 objects allocated
```

* More iterations/second is good!
* Fewer allocations is good!
Pull Request #5268: Improve performance of online_holding_note?

7 of 7 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

6140 of 6439 relevant lines covered (95.36%)

1502.13 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
95.49
0.0% app/models/solr_document.rb
Jobs
ID Job ID Ran Files Coverage
1 acce7e84-70ee-4ef0-a486-bfb9bdffe1e7.1 27 Oct 2025 01:52AM UTC 221
95.36
Source Files on build acce7e84-70ee-4ef0-a486-bfb9bdffe1e7
  • Tree
  • List 221
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #ACCE7E84...
  • Pull Request #5268
  • PR Base - main (#7597E26B...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc