Instead of splitting, just use lastIndexOf and slice.
This is 2x as fast.
Details
Details
- Reviewers
mart - Group Reviewers
Plasma - Commits
- R120:3d85454fef8d: [Notification Job Delegate] Slightly optimize summary label
Still shows only file name, I didn't check but I verified that slice(0) would return the entire string (which is when there is no slash, ie. indexOf being -1)
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.