Skip to content

Commit

Permalink
feat: remove the need to have a cpp compiler installed (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 5, 2023
1 parent 5512c3d commit 2a7ebac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bench/int_to_bluetooth_address.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import timeit

from bluetooth_data_tools.utils import _int_to_bluetooth_address


def parse_adv() -> None:
_int_to_bluetooth_address(0)


count = 10000000
time = timeit.Timer(parse_adv).timeit(count)
print(f"Parsing {count} bluetooth addresses took {time} seconds")
2 changes: 1 addition & 1 deletion build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[
join("src", "bluetooth_data_tools", "_utils_impl.pyx"),
],
language="c++",
language="c",
)


Expand Down

0 comments on commit 2a7ebac

Please sign in to comment.