-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,568 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@4081bf99e2866ebe428fc0477b69eb4fcda7220a #v4.4.0 | ||
with: | ||
fail-on-severity: high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Runtime.InteropServices; | ||
using Paprika.Store; | ||
|
||
namespace Paprika.Benchmarks; | ||
|
||
public static class Allocator | ||
{ | ||
public static unsafe void* AllocAlignedPage(bool clean = true) | ||
{ | ||
const UIntPtr size = Page.PageSize; | ||
var memory = NativeMemory.AlignedAlloc(size, size); | ||
if (clean) | ||
{ | ||
NativeMemory.Clear(memory, size); | ||
} | ||
|
||
return memory; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using BenchmarkDotNet.Attributes; | ||
using Paprika.Data; | ||
using Paprika.Store; | ||
|
||
namespace Paprika.Benchmarks; | ||
|
||
[DisassemblyDiagnoser] | ||
public class PageExtensionsBenchmarks | ||
{ | ||
private readonly Page _a; | ||
private readonly Page _b; | ||
|
||
public unsafe PageExtensionsBenchmarks() | ||
{ | ||
_a = new Page((byte*)Allocator.AllocAlignedPage()); | ||
_b = new Page((byte*)Allocator.AllocAlignedPage()); | ||
} | ||
|
||
[Benchmark] | ||
public void OrWith() | ||
{ | ||
_a.OrWith(_b); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Paprika Importer | ||
|
||
Use the following steps to import from Nethermind’s DB | ||
|
||
- Switch to the `importer` branch | ||
- `git checkout remotes/origin/importer` | ||
- Fetch the submodules | ||
- `git submodule update --init --recursive` | ||
- Build Paprika.Importer | ||
- `dotnet build .\\src\\Paprika.Importer\\Paprika.Importer.sln` | ||
- Run | ||
- `cd .\\src\\Paprika.Importer` | ||
- `dotnet run -- path_to_nethermind_db_mainnet` |
Oops, something went wrong.