为什么多线程速度会快?
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4k
- Forks
- 592
- PR merge metrics
- No merged PRs in 30d
Description
我用的是C++版。4核的cpu上跑分词。
单线程跑分词CPU飙到100%了,我用4线程同样是CPU占到100%
但是4线程跑30M文本只有3分钟,单线程却花了10分钟。
why?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reproducing the C++ tokenizer benchmark on 30M of text with one and four threads, then inspect the relevant threading and performance paths; done means explaining the differing runtimes or identifying a concrete performance defect.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100