Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS2210 U202115473 刘欣逸 #3

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

XinyiLiu577086410
Copy link

以时间顺序简述优化过程:
用std::thread创建多个线程对同一个数据对象res进行并行着色。
优化weightcoeff中的算术计算
将计算的系数存入数组,将WeightCoeff()调用次数减少到8次(在avx优化时被重写)
avx512优化CalcCoeff计算。
对于不同图片调整分块块数。
优化src为引用传递(传入指针)
优化后大致效果:
HUST.jpg:1520ms
CS.JPEG:40
50ms
HUST.JPEG:110~140ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant