-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfperformanceregressionstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.0
Description
Previous ID | SR-8773 |
Radar | None |
Original Reporter | @stephentyrone |
Type | Bug |
Status | Closed |
Resolution | Invalid |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler, Standard Library |
Labels | Bug, 5.0Regression, Performance |
Assignee | None |
Priority | Medium |
md5: 1047d6cb8df254319d55fdb596cba74c
Issue Description:
@jepers asked a question about avoiding bounds checks in array subscripts: https://forums.swift.org/t/subscript-array-without-bounds-check/16222
His proposed solution .withUnsafeBufferPointer{ $0[i] }
works on 4.1.2, but falls over rather dramatically on master. If this is not a deliberate semantic change, it appears to be a pretty severe optimization regression.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfperformanceregressionstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.0