microsoft / microsoft/qlib

py3.10下速度非常慢

Open
#1,889 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

❓ Questions and Help

我之前在py3.8下运行qlib都没有问题,但是在py3.10下发现数据提取速度很慢,远远慢于py3.8下。比如df = D.features(
stock_codes,
['$close', '$volume'],
start_time=start_time,
end_time=end_time
),就这样一个简单的语句,我在两个环境下,都在config.py中将NUM_USABLE_CPU 设置为60,但是速度就是差异非常非常大!请大佬们指导下

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with config.py and the D.features call shown in the report, then compare the Python 3.8 and 3.10 environments using the same data, feature list, time range, and NUM_USABLE_CPU setting. Gather a reproducible benchmark and environment details; the issue is done when the slowdown is explained and a validated fix or compatibility guidance is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.