question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make more use of LaneUtil, etc.

See original GitHub issue

_Originally posted by @kianzarrin in https://github.com/CitiesSkylinesMods/TMPE/pull/1467#discussion_r834235771_ :

Not sure if its within the scope but we can GetSegmentLaneIdsAndLaneIndexes() here and several other places in this file.

Also we can make use of LaneUtil.GetLaneIndex() LaneUtil.GetLaneInfo() LaneUtil.GetLaneId() in several places in this file.

Also I think maybe we should convert LaneUtil to extensions, eg. laneId.GetLaneIndex()? - the extension name makes it clear we’re working with lanes.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
krzychu124commented, Apr 4, 2022

may was intentional. It silently hides complexity. You can see nice example in ExtPathManager.FindPathPositionWithSpiralLoop. Calling that method recurrently may result in StackOverflowException if it goes too deep.

image

0reactions
kianzarrincommented, Apr 4, 2022

depends on the definition of garbage. it does not create anything for GC. but if by garbage you mean excessive use of stack that could be avoided if we don’t use enumerable, then I don’t know if we can significantly reduce stack size if we don’t use iterator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jumpers Hole Road Study from MD 2 to MD 177
DPWandYOU.com | Making a difference, together. 2. Existing Conditions – Traffic. ▫ Queueing along Jumpers Hole Road and delays exiting side streets.
Read more >
Defense Intelligence Agency (DIA) Headquarters (HQ) Annex ...
It can make more efficient use of land resources by reducing the need for large, centralized stormwater basins, decreasing.
Read more >
Transportation Analysis Technical Appendix
4 One Lane removed in each direction to make for one or more improvements like: ... Use third NB through lane to transition...
Read more >
Spruce Street Railroad Crossing Intersection ... - City of Missoula
Overall, it would be more advantageous to make improvements at Madison Street versus 2nd. Street because of the higher level of left-turning ...
Read more >
Balboa Area Transportation Demand Management (TDM) Plan
A number of improvements in the Balboa Area are making transit more accessible including, San Francisco Municipal Transportation Agency (SFMTA) operation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found