Skip to content

Commit

Permalink
examples: python: added efficiency note
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ivanov committed Dec 31, 2013
1 parent 88e22a7 commit 3494f9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/python_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def send(_dict, addr):
>>> StatsdClient.send({"example.send":"11|c"}, ("127.0.0.1", 8125))
"""
# TODO(rbtz@): IPv6 support
# TODO(rbtz@): Creating socket on each send is a waste of recources
udp_sock = socket(AF_INET, SOCK_DGRAM)
# TODO(rbtz@): Add batch support
for item in _dict.items():
Expand Down

0 comments on commit 3494f9b

Please sign in to comment.