Skip to content

Comments

Added Zipf distribution.#2

Open
bshafiee wants to merge 1 commit intoAlexSzlavik:masterfrom
bshafiee:master
Open

Added Zipf distribution.#2
bshafiee wants to merge 1 commit intoAlexSzlavik:masterfrom
bshafiee:master

Conversation

@bshafiee
Copy link

This has been done as part of CS854 course project at University of Waterloo.
A technical report related to the project and zipf distribution has been added to docs directory.

This has been done as part of CS854 course project at University of Waterloo.
A technical report related to the project and zipf distribution has been added to docs directory.
@AlexSzlavik
Copy link
Owner

Thank you for pushing your changes.
I'm going to re-work the main loop portion of your suggestion. The execution engine should really be separated out into a class.

@bshafiee
Copy link
Author

You're welcome.
Yep, That's right. It was just a workaround to get it to work.

@AlexSzlavik
Copy link
Owner

The branch prediction wouldn't help you at all in avoiding the conditional jump evaluation. It will only help with pipeline stalls. You still have to execute the conditional jump. I haven't checked the assembly yet, but it could be that the compiler does the right thing and recognizes that there are no writes to isZipf. This could cause the check to be optimized out.

@bshafiee
Copy link
Author

Aw, you are right. I was confused by the compiler optimization. But even if the compiler does so, that if does not need to be there.

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.

2 participants