1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

if a := foo() { syntax for handling optionals

This commit is contained in:
Alexander Medvednikov
2019-10-01 06:33:03 +03:00
parent 56e4ed1e6b
commit 5ba354fa2c
6 changed files with 137 additions and 41 deletions

View File

@@ -8,6 +8,10 @@ module builtin
This is work in progress.
A very early test version of the hashmap with a fixed size.
Only works with string keys and int values for now.
I added this to improve performance of the V compiler,
which uses lots of O(log n) map get's. Turned out with N < 10 000
the performance gains are basically non-existent.
*/
import math