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

WIP: Codegen-free FASTER C# #67

Merged
merged 31 commits into from
Dec 14, 2018
Merged

WIP: Codegen-free FASTER C# #67

merged 31 commits into from
Dec 14, 2018

Conversation

badrishc
Copy link
Collaborator

There have been some reports of code gen in FASTER C# causing slow instantiation (5 secs), plus the integration with arbitrary user types has overheads and restrictions (e.g., with access). Therefore, we are experimenting with a code gen free version of FASTER in this PR.

The basic idea is to use calls from System.Runtime.CompilerServices.Unsafe to enable in-place updates of .NET types, and manage the hybrid log without requiring a pointer based core API. I benchmarked Unsafe.AsRef and it appears we can do a billion of these on one core, per second. We are slowly updating parts of the FASTER code, with constant performance benchmarking, to ensure that changes we attempt do not regress performance significantly.

The current status of the PR is: I have remove Key* and Value*, and converted "Functions" to not be static. Performance has not degraded yet. In fact, changing callbacks to user Functions from static to instance-based, has given a 10% hike in performance at scale (72 cores), not sure why.

Comments appreciated - including from @mike-barnett @ReubenBond @gunaprsd.

@badrishc badrishc added enhancement New feature or request work in progress Work in progress labels Nov 25, 2018
badrishc and others added 24 commits November 25, 2018 14:12
…, for in-memory operations. BasicFASTERTests test cases now pass. There is no performance regression for 50:50 read/upsert YCSB workload. ManagedSample1 is now based on generic FASTER. Support for non-blittable objects has not yet been added. Codegen fails - but can be ignored for now.
…terface. Now, there are no interface restrictions or requirements on any of the FASTER key/value types.
@badrishc badrishc merged commit 54f23a4 into master Dec 14, 2018
@badrishc
Copy link
Collaborator Author

Work is complete. All tests pass, with no performance regression. Merged, closing PR.

@badrishc badrishc deleted the nocodegen branch December 14, 2018 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work in progress Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant