See how a minor change to your commit message style can make a difference.
ℹ️ git-conventional-commits A CLI util to ensure this conventions and generate changelogs
See how a minor change to your commit message style can make a difference.
ℹ️ git-conventional-commits A CLI util to ensure this conventions and generate changelogs
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) | |
| (0, 0, 0) |
| import sys, gc, time | |
| def create_cycle(): | |
| a = [8, 9, 10] | |
| a.append(a) | |
| def main(): | |
| start = time.time() | |
| for i in range(70): | |
| create_cycle() |
| (74, 0, 0) | |
| (146, 0, 0) | |
| (216, 0, 0) | |
| (286, 0, 0) | |
| (356, 0, 0) | |
| (426, 0, 0) | |
| (496, 0, 0) | |
| (566, 0, 0) | |
| (636, 0, 0) | |
| (0, 1, 0) |
| import sys, gc, time | |
| def create_cycle(): | |
| a = [8, 9, 10] | |
| a.append(a) | |
| def main(): | |
| start = time.time() | |
| for i in range(70): | |
| create_cycle() |
| >>> import gc | |
| >>> gc.get_threshold() | |
| (700, 10, 10) | |
| >>> gc.set_threshold(1000, 15, 15) | |
| >>> gc.get_threshold() | |
| (1000, 15, 15) |
| >>> gc.get_count() | |
| (121, 9, 2) | |
| >>> gc.collect() | |
| 54 | |
| >>> gc.get_count() | |
| (54, 0, 0) |
| >>> import gc | |
| >>> gc.get_count() | |
| (121, 9, 2) |
| >>> import gc | |
| >>> gc.get_threshold() | |
| (700, 10, 10) |
| >>> a = Func_pr() # 0x01 | |
| >>> b = Func_pr() # 0x02 | |
| >>> a.x = b # 0x01의 x는 0x02를 가리킨다. | |
| >>> b.x = a # 0x02의 x는 0x01를 가리킨다. | |
| # 0x01의 레퍼런스 카운트는 a와 b.x로 2다. | |
| # 0x02의 레퍼런스 카운트는 b와 a.x로 2다. | |
| >>> del a # 0x01은 1로 감소한다. 0x02는 b와 0x01.x로 2다. | |
| >>> del b # 0x02는 1로 감소한다. |