Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Decrease Memory footprint #1873

Closed
wants to merge 1 commit into from

Conversation

schneems
Copy link
Contributor

Mime-types 2.6.1+ has a columnar store that only loads the data that is needed for a drastically reduced memory footprint. cc/ @jeremyevans @halostatue

require 'mime/types'
begin
# Use mime/types/columnar if available, for reduced memory usage
require 'mime/types/columnar'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@schneems schneems changed the title Decrease Fog Memory footprint Decrease Memory footprint May 26, 2015
Mime-types 2.6.1+ has a columnar store that only loads the data that is needed for a drastically reduced memory footprint. cc/ @jeremyevans @halostatue
@tute
Copy link
Contributor

tute commented May 27, 2015

Related PR: mime-types/ruby-mime-types#96.

Thank you, @schneems!

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.

3 participants