]> cat aescling's git repositories - mastodon.git/commit
Slightly reduce RAM usage (#7301)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 2 May 2018 16:58:48 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Wed, 2 May 2018 16:58:48 +0000 (18:58 +0200)
commitcb5b5cb5f79bb2187d8124df91af4c8e1bfd7256
tree76f728b51beda1992b14e3bc83f6a67fdd77dce3
parent71a7cea73fdfb45d06986e108b2ce1dbf7e32579
Slightly reduce RAM usage (#7301)

* No need to re-require sidekiq plugins, they are required via Gemfile

* Add derailed_benchmarks tool, no need to require TTY gems in Gemfile

* Replace ruby-oembed with FetchOEmbedService

Reduce startup by 45382 allocated objects

* Remove preloaded JSON-LD in favour of caching HTTP responses

Reduce boot RAM by about 6 MiB

* Fix tests

* Fix test suite by stubbing out JSON-LD contexts
76 files changed:
Gemfile
Gemfile.lock
app/controllers/api/web/embeds_controller.rb
app/controllers/settings/follower_domains_controller.rb
app/helpers/jsonld_helper.rb
app/lib/provider_discovery.rb [deleted file]
app/services/fan_out_on_write_service.rb
app/services/fetch_link_card_service.rb
app/services/fetch_oembed_service.rb [new file with mode: 0644]
app/workers/scheduler/backup_cleanup_scheduler.rb
app/workers/scheduler/doorkeeper_cleanup_scheduler.rb
app/workers/scheduler/email_scheduler.rb
app/workers/scheduler/feed_cleanup_scheduler.rb
app/workers/scheduler/ip_cleanup_scheduler.rb
app/workers/scheduler/media_cleanup_scheduler.rb
app/workers/scheduler/subscriptions_cleanup_scheduler.rb
app/workers/scheduler/subscriptions_scheduler.rb
app/workers/scheduler/user_cleanup_scheduler.rb
app/workers/soft_block_domain_followers_worker.rb
config/initializers/json_ld.rb [deleted file]
config/initializers/oembed.rb [deleted file]
lib/json_ld/activitystreams.rb [deleted file]
lib/json_ld/identity.rb [deleted file]
lib/json_ld/security.rb [deleted file]
lib/tasks/mastodon.rake
spec/fixtures/requests/json-ld.activitystreams.txt [new file with mode: 0644]
spec/fixtures/requests/json-ld.identity.txt [new file with mode: 0644]
spec/fixtures/requests/json-ld.security.txt [new file with mode: 0644]
spec/lib/activitypub/linked_data_signature_spec.rb
spec/rails_helper.rb
spec/services/account_search_service_spec.rb
spec/services/activitypub/fetch_remote_account_service_spec.rb
spec/services/activitypub/fetch_remote_status_service_spec.rb
spec/services/activitypub/process_account_service_spec.rb
spec/services/activitypub/process_collection_service_spec.rb
spec/services/after_block_service_spec.rb
spec/services/authorize_follow_service_spec.rb
spec/services/batched_remove_status_service_spec.rb
spec/services/block_domain_from_account_service_spec.rb
spec/services/block_domain_service_spec.rb
spec/services/block_service_spec.rb
spec/services/bootstrap_timeline_service_spec.rb
spec/services/fan_out_on_write_service_spec.rb
spec/services/favourite_service_spec.rb
spec/services/fetch_atom_service_spec.rb
spec/services/fetch_link_card_service_spec.rb
spec/services/fetch_oembed_service_spec.rb [moved from spec/lib/provider_discovery_spec.rb with 64% similarity]
spec/services/fetch_remote_account_service_spec.rb
spec/services/fetch_remote_status_service_spec.rb
spec/services/follow_service_spec.rb
spec/services/mute_service_spec.rb
spec/services/notify_service_spec.rb
spec/services/post_status_service_spec.rb
spec/services/precompute_feed_service_spec.rb
spec/services/process_feed_service_spec.rb
spec/services/process_interaction_service_spec.rb
spec/services/process_mentions_service_spec.rb
spec/services/pubsubhubbub/subscribe_service_spec.rb
spec/services/pubsubhubbub/unsubscribe_service_spec.rb
spec/services/reblog_service_spec.rb
spec/services/reject_follow_service_spec.rb
spec/services/remove_status_service_spec.rb
spec/services/report_service_spec.rb
spec/services/resolve_account_service_spec.rb
spec/services/resolve_url_service_spec.rb
spec/services/search_service_spec.rb
spec/services/send_interaction_service_spec.rb
spec/services/subscribe_service_spec.rb
spec/services/suspend_account_service_spec.rb
spec/services/unblock_domain_service_spec.rb
spec/services/unblock_service_spec.rb
spec/services/unfollow_service_spec.rb
spec/services/unmute_service_spec.rb
spec/services/unsubscribe_service_spec.rb
spec/services/update_remote_profile_service_spec.rb
spec/spec_helper.rb