Skip to content

Instantly share code, notes, and snippets.

@crewjam
crewjam / README.md
Last active December 15, 2020 17:51

Go crypto operations are super slow on AWS lambda while processing an event, but they are super fast during cold start.

The performance is pretty reliably loke the following:

$ aws lambda invoke --function-name $FUNCTION response.json
$ jq -r < response.json
cold start: count: 10
cold start: total dur: 143.704664ms
cold start: avg dur 14.370466ms

Keybase proof

I hereby claim:

  • I am crewjam on github.
  • I am crewjam (https://keybase.io/crewjam) on keybase.
  • I have a public key whose fingerprint is 8EA2 05C0 1C42 5FF1 95A5 E9A4 3FA0 768F 26FD 2554

To claim this, I am signing this object:

@crewjam
crewjam / test.cc
Last active August 29, 2015 14:16
wide character path test program
// cl test.cc & test.exe
#include <windows.h>
#include <stdio.h>
int main() {
wchar_t path[] = L"a<b";
CreateFileW(path, GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL);
LPVOID lastErrorString;
DWORD lastError = GetLastError();