ちょっと前の話ですが、トレジャーデータという会社を辞めました。えぐいほどいい会社だし、全世界のIoTデータをさばくやつを作るのは技術者として死ぬほど楽しいんだろうなと思ったけど、僕はあるスタートアップに行くことにしました。
カンムという会社です。よろしくお願いします。
ちょっと前の話ですが、トレジャーデータという会社を辞めました。えぐいほどいい会社だし、全世界のIoTデータをさばくやつを作るのは技術者として死ぬほど楽しいんだろうなと思ったけど、僕はあるスタートアップに行くことにしました。
カンムという会社です。よろしくお願いします。
| -module(ca_cowboy_middleware). | |
| -behaviour(cowboy_middleware). | |
| -export([execute/2]). | |
| execute(Req, Env) -> | |
| {ok, ReqWithCorsHeaders} = set_cors_headers(Req), | |
| Method = cowboy_req:method(ReqWithCorsHeaders), |
| -module(fifocache). | |
| -export([new/1, push/3, lookup/2]). | |
| %%----------------------------------------- | |
| %% FIFO cache | |
| %% | |
| %% - Representation | |
| %% | |
| %% {Map, Array, Size, Bottom, Top, NewFlag} |
no-EVP
1> c(bench3).
{ok,bench3}
2> bench3:run().
encrypt: 65230 times/sec
decrypt: 67715 times/sec
ok
| diff --git ebin/rebar.app ebin/rebar.app | |
| index 710f8b2..b683ffb 100644 | |
| --- ebin/rebar.app | |
| +++ ebin/rebar.app | |
| @@ -46,7 +46,8 @@ | |
| rebar_metacmds, | |
| rebar_getopt, | |
| rebar_mustache, | |
| - rmemo ]}, | |
| + rmemo, |
| -include_lib("public_key/include/public_key.hrl"). | |
| extract_public_key(CertPath) | |
| {ok, CertBinary} = file:read_file(CertPath), | |
| CertPemEntries = public_key:pem_decode(CertBinary), | |
| {'Certificate', Cert, _} = lists:keyfind('Certificate', 1, CertPemEntries), | |
| #'OTPCertificate'{ | |
| tbsCertificate = #'OTPTBSCertificate'{ | |
| subjectPublicKeyInfo = #'OTPSubjectPublicKeyInfo'{ | |
| subjectPublicKey = PublicKey |
| defmodule StringIO do | |
| def new(string) when is_binary(string) do | |
| spawn_link(fn -> string_io_process(string) end) | |
| end | |
| def string_io_process(string) do | |
| loop(:infinity, String.to_char_list!(string)) | |
| end | |
| def loop(wait, buf) do |