Running with -curve=bls12-381
DEBU[0000] Order of field "in the exponent" F_r: 52435875175126190479447740508185965837690552500527637822603658699938581184513
DEBU[0000] Order of multiplicative subgroup G_{r-1}: 52435875175126190479447740508185965837690552500527637822603658699938581184512
DEBU[0000] Selected curve: bls12-381 (5)
DEBU[0000] GetMaxOpUnitSize() = 6
DEBU[0000] GetFrUnitSize() = 4
goos: linux
- https://blog.anp.lol/rust/2016/07/24/profiling-rust-perf-flamegraph/
- https://gist.github.com/jFransham/369a86eff00e5f280ed25121454acec1#number-one-optimization-tip-dont
- http://likebike.com/posts/How_To_Write_Fast_Rust_Code.html
- https://llogiq.github.io/2017/06/01/perf-pitfalls.html
- https://rust-embedded.github.io/book/unsorted/speed-vs-size.html
You might have to do this:
This file contains hidden or 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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", |
This file contains hidden or 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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
// "command": "sh", | |
// "type": "shell", | |
// "args": ["-c"], | |
"options": { | |
"cwd": "${workspaceRoot}/build" | |
}, |
This file contains hidden or 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
CXX=g++ | |
CXXFLAGS=-g -std=c++11 -Wall -Wextra -Wcast-align -pedantic | |
LDFLAGS := | |
SRC_DIR := src | |
OBJ_DIR := bin | |
SRC_FILES := $(wildcard $(SRC_DIR)/*.cpp) | |
OBJ_FILES := $(patsubst $(SRC_DIR)/%.cpp,$(OBJ_DIR)/%.o,$(SRC_FILES)) |
This file contains hidden or 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
# https://stackoverflow.com/questions/390250/elegant-ways-to-support-equivalence-equality-in-python-classes | |
class Number: | |
def __init__(self, number): | |
self.number = number | |
def __eq__(self, other): | |
"""Overrides the default implementation""" | |
if isinstance(other, Number): |
This file contains hidden or 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
# Forked from https://gist.github.com/joaopizani/2718397 | |
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 200000 | |
# no welcome message |
NewerOlder