forked from mrlan/EnglishPal
1b211f107d
The key change is replacing "d1 = load_freq_history(path_prefix + 'static/frequency/ferquency.p)" with "d1 = load_freq_history(user_word_list)" in function get_today_article() from Article.py. Now, with a user_word_list of size about 500, the next article can be loaded within 100ms. The new d1 is much smaller than the old one, therefore the following computation "d3 = get_difficulty_level_for_user(d1, d2)" is much faster. The students did not feel that loading next article is slow; this is because their frequency.p is quite small. Also log information in app/log.txt |
||
---|---|---|
.. | ||
db | ||
layout/partial | ||
model | ||
static | ||
templates | ||
test | ||
Article.py | ||
Login.py | ||
UseSqlite.py | ||
WordFreq.py | ||
Yaml.py | ||
account_service.py | ||
admin_service.py | ||
difficulty.py | ||
main.py | ||
pickle_idea.py | ||
pickle_idea2.py | ||
user_service.py | ||
wordfreqCMD.py |