Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

avoid expensive application_name call #720

Merged
merged 1 commit into from Jul 20, 2017

Conversation

jrochkind
Copy link
Contributor

@jrochkind jrochkind commented Jul 19, 2017

It turns out calling Sufia helper application_name is quite expensive, too
expensive to do twice per member on a page that could have hundreds of members.
Sufia::SufiaHelperBehavior#application_name

We could have tried to figure out why it was expensive and optimized it, but
we don't need it enough to be worth the time at present.

PR'd to riiif branch, because this .erb code changed it's location
between master and riiif, didn't want to deal with the merge.

It turns out calling Sufia helper  is quite expensive, too
expensive to do twice per member on a page that could have hundreds of members.
Sufia::SufiaHelperBehavior#application_name

We could have tried to figure out why it was expensive and optimized it, but
we don't need it enough to be worth the time at present.
@hackartisan hackartisan merged commit 4b7807b into riiif Jul 20, 2017
@hackartisan hackartisan deleted the avoid_expensive_application_name branch July 20, 2017 13:55
jrochkind added a commit that referenced this pull request Oct 10, 2017
Thought we did this earlier, but it got lost in a merge i guess.
#720
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants