griffithlab / civic-v2

CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer
https://civicdb.org
MIT License
19 stars 5 forks source link

Upgrade to Ruby 3.3 #984

Closed acoffman closed 5 months ago

acoffman commented 7 months ago

We are currently on 3.0 which is still receiving security updates for the time being, but will be EOL soon.

Ruby 3.3 (released in December) also comes with YJIT, which speeds up rails apps by somewhere between 15-20% in real world benchmarks (https://railsatscale.com/2023-12-04-ruby-3-3-s-yjit-faster-while-using-less-memory/). This adds an initializer which turns on YJIT if it's available.

Initially this will only swap staging to 3.3; if that goes well, we'll roll out to prod.

acoffman commented 7 months ago

Additionally, updated our JSON serialization library, which claims about a 15% performance gain in the new version over the version we're using, and rolled everything out to staging.

We are substantially behind on the graphql gem as well so I'm going to try to get that updated in this PR as well.

acoffman commented 7 months ago

Updated to the newest GraphQL libraries and rails version. Running successfully in staging. Will want to kick the tires some before rolling to prod.