Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

order-book

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

order-book - npm Package Compare versions

Comparing version
0.4.3
to
0.5.0
+5
-0
CHANGES.md
## Changelog
### 0.5.0 (2022-08-23)
* Bugfix: fix segmentation fault when calculating checksum on empty orderbook
* Bugfix: fix missing reference decrement
* Performance: Improvement to marking dirty keys
### 0.4.3 (2022-05-29)

@@ -4,0 +9,0 @@ * Bugfix: handle scientific notation of small values in Kraken checksum

+6
-1
Metadata-Version: 2.1
Name: order-book
Version: 0.4.3
Version: 0.5.0
Summary: A fast orderbook implementation, in C, for Python

@@ -147,2 +147,7 @@ Home-page: https://github.com/bmoscon/orderbook

### 0.5.0 (2022-08-23)
* Bugfix: fix segmentation fault when calculating checksum on empty orderbook
* Bugfix: fix missing reference decrement
* Performance: Improvement to marking dirty keys
### 0.4.3 (2022-05-29)

@@ -149,0 +154,0 @@ * Bugfix: handle scientific notation of small values in Kraken checksum

/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -488,2 +488,9 @@ Please see the LICENSE file for the terms and conditions

PyObject *flt = PyFloat_FromString(repr);
if (EXPECT(!flt, 0)) {
Py_DECREF(repr);
return -1;
}
Py_DECREF(repr);
if (EXPECT(str_string_builder(flt, data, pos), 0)) {

@@ -612,4 +619,6 @@ Py_DECREF(flt);

unsigned long ret = crc32_table(ob->checksum_buffer, pos-1);
int len = (pos > 0) ? pos - 1 : 0;
unsigned long ret = crc32_table(ob->checksum_buffer, len);
return PyLong_FromUnsignedLong(ret);

@@ -616,0 +625,0 @@ }

+1
-1
/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -4,0 +4,0 @@ Please see the LICENSE file for the terms and conditions

/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -409,5 +409,7 @@ Please see the LICENSE file for the terms and conditions

{
self->dirty = true;
if (value) {
if (EXPECT(PyDict_Contains(self->data, key) == 0, 0)) {
self->dirty = true;
}
if (value) {
int ret = PyDict_SetItem(self->data, key, value);

@@ -423,2 +425,3 @@

} else {
self->dirty = true;
// setitem also called to for del (value will be null for deletes)

@@ -425,0 +428,0 @@ return PyDict_DelItem(self->data, key);

/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -4,0 +4,0 @@ Please see the LICENSE file for the terms and conditions

/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -4,0 +4,0 @@ Please see the LICENSE file for the terms and conditions

/*
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -4,0 +4,0 @@ Please see the LICENSE file for the terms and conditions

Metadata-Version: 2.1
Name: order_book
Version: 0.4.3
Version: 0.5.0
Summary: A fast orderbook implementation, in C, for Python

@@ -147,2 +147,7 @@ Home-page: https://github.com/bmoscon/orderbook

### 0.5.0 (2022-08-23)
* Bugfix: fix segmentation fault when calculating checksum on empty orderbook
* Bugfix: fix missing reference decrement
* Performance: Improvement to marking dirty keys
### 0.4.3 (2022-05-29)

@@ -149,0 +154,0 @@ * Bugfix: handle scientific notation of small values in Kraken checksum

'''
Copyright (C) 2020-2021 Bryant Moscon - bmoscon@gmail.com
Copyright (C) 2020-2022 Bryant Moscon - bmoscon@gmail.com

@@ -38,3 +38,3 @@ Please see the LICENSE file for the terms and conditions

name='order_book',
version='0.4.3',
version='0.5.0',
author="Bryant Moscon",

@@ -41,0 +41,0 @@ author_email="bmoscon@gmail.com",