Skip to content

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Jan 11, 2017

};

function createList<A>() : List<A> {
return { first: null, last: null };
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh I guess I should just put these directly on the update queue type :D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's more important, that this List type is generic or that we avoid the extra allocation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also make the List type an intersection of the ListNode type, like the UpdateQueue type was in the first version.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it generic is explicitly a non-goal. If all we need is something super generic. Maybe we can just stick to arrays.

@acdlite acdlite force-pushed the fibercallbacklistnoarray branch from 4596397 to 0e48903 Compare January 11, 2017 21:16
@acdlite
Copy link
Collaborator Author

acdlite commented Jan 11, 2017

@sebmarkbage Ok I put the list on the UpdateQueue.

@sebmarkbage
Copy link
Collaborator

I think my original feedback was too eager. I was thinking that we could reuse other parts of the linked list data structure for updates.

I also added more uses of dynamic arrays in #8607.

So maybe we can just leave it as is?

@acdlite
Copy link
Collaborator Author

acdlite commented Jan 11, 2017

Leave it as an array? Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants