Skip to content

Commit

Permalink
do loops
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrd committed Oct 29, 2022
1 parent f1479af commit 30f7421
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# fM44 is small
# a2lU has many annotations
# DDB.at("tasks").read(key="fM44", as_type=PathDict)
with DDB.at("tasks").session(key="a2lU", as_type=PathDict) as (session, task):
task["jay"] = lambda x: (x or 0) + 1
session.write()
for _ in range(10):
with DDB.at("tasks").session(key="a2lU", as_type=PathDict) as (session, task):
task["jay"] = lambda x: (x or 0) + 1
session.write()
p.open_in_browser(timeline=True)

0 comments on commit 30f7421

Please sign in to comment.