Project

General

Profile

Actions

最適化 #931

open

一部のオブジェクトが不要なデータを抱えている

Added by Osamu Koga over 8 years ago. Updated about 7 years ago.

Status:
新規
Priority:
通常
Assignee:
-
Target version:
-
Start date:
2016-11-14
Due date:
% Done:

0%

プラグイン名:

Description

例えばUserオブジェクトは、api_call_support.rb内でTwitterの渡してきたUserオブジェクトをそのままparseして格納していますが、ここにはユーザの最新ツイートなど、mikutter的には不要なものが含まれています。

>>> User.findbyidname('osa_k').to_hash[:status][:text]
"mikutter分からんけど何が分からないのかも分からない……" 

これが直接的に問題となる箇所はないですが、多くのUserオブジェクトが生成される環境(フォロー数が多い、RTが大量に流れてくる等)ではメモリを無駄に圧迫する可能性があります。

Actions #1

Updated by toshi_a 初音 about 7 years ago

  • Target version deleted (3.6)
Actions

Also available in: Atom PDF