Ticket #325 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

calling len() on char*

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.12.1
Component: Optimization Keywords:
Cc:

Description

Calling len() on a char* should translate to a call to strlen() instead of creating an intermediate Python string. This has the same semantics as it currently does (i.e. count the string length up the a 0 byte), but would be a lot more efficient.

Change History

Changed 3 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned
  • milestone changed from wishlist to 0.12.1

Changed 3 years ago by scoder

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.