Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 01:09
    billgao87 starred exceptionless/Exceptionless
  • Sep 20 13:20

    niemyjski on elastic7

    Fixed more unit tests (compare)

  • Sep 20 12:11
    niemyjski commented #447
  • Sep 20 07:42
    ZhiqiangTao commented #447
  • Sep 19 22:56

    niemyjski on elastic7

    bumped major and deps (fixed te… (compare)

  • Sep 19 14:20

    niemyjski on elastic7

    Fixed all issues with the event… (compare)

  • Sep 19 07:04
  • Sep 19 04:49
  • Sep 19 03:32
  • Sep 18 12:46
    LydellM commented #448
  • Sep 18 12:38
    niemyjski labeled #448
  • Sep 18 12:37
    niemyjski closed #448
  • Sep 18 12:37
    niemyjski commented #448
  • Sep 18 12:37
    niemyjski commented #448
  • Sep 18 12:35
    niemyjski commented #447
  • Sep 18 07:09
    ZhiqiangTao closed #447
  • Sep 18 05:31
    leehomlee starred exceptionless/Exceptionless
  • Sep 18 03:17
  • Sep 18 02:13

    niemyjski on elastic7

    More ES7 Changes (compare)

  • Sep 17 20:34
    LydellM opened #448
Blake Niemyjski
@niemyjski
I’m going to make that change real quick
Eric J. Smith
@ejsmith
that only works for in memory implementations, no?
Blake Niemyjski
@niemyjski
no
all of them
hmm
ToDictionary overload doesn’t look at the count
when creating it
Eric J. Smith
@ejsmith
how would you know how many items are in reds?
redis
Blake Niemyjski
@niemyjski
it does a getall
and then iterates over that..
Eric J. Smith
@ejsmith
huh???
Blake Niemyjski
@niemyjski
    public async Task<IDictionary<string, CacheValue<T>>> GetAllAsync<T>(IEnumerable<string> keys) {
        var scopedDictionary = await UnscopedCache.GetAllAsync<T>(GetScopedCacheKeys(keys)).AnyContext();
        return scopedDictionary.ToDictionary(kvp => UnscopeCacheKey(kvp.Key), kvp => kvp.Value);
    }
Eric J. Smith
@ejsmith
ohhh
the getall method
Blake Niemyjski
@niemyjski
hmm
Eric J. Smith
@ejsmith
you really think someone is calling that with that many items?
Blake Niemyjski
@niemyjski
eh by default it’s all keys
Eric J. Smith
@ejsmith
pretty sure the default size will cover it.
Blake Niemyjski
@niemyjski
but the ToDictionary doesn’t set it so I guess when someone hits that issue we’ll fix it
I think it starts really low
like 4, and then resizes by a base 2
if I remember correctly
doubles every resize
Blake Niemyjski
@niemyjski
build just failed and I was looking at the logs
I just noticed the last version of grunt was released in 2014
Jamie Clarke
@jamie94bc
good call @niemyjski
that's why i'm using gulp ;)
Blake Niemyjski
@niemyjski
was picked up by jQuery foundation. and they got like 5 new contributors and just released an rc of 1.0
so that’s good
eh when I started gulp was pretty new
kinda pissed
got 70% done with the ui rewrite and aurelia and gulp really took off
Jamie Clarke
@jamie94bc
        public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
            if (source == null) throw Error.ArgumentNull("source");
            if (keySelector == null) throw Error.ArgumentNull("keySelector");
            if (elementSelector == null) throw Error.ArgumentNull("elementSelector");
            Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(comparer);
            foreach (TSource element in source) d.Add(keySelector(element), elementSelector(element));
            return d;
        }
Blake Niemyjski
@niemyjski
yeah
Jamie Clarke
@jamie94bc
that's implementation from reference source
which is why i didn't use it
Blake Niemyjski
@niemyjski
I saw that too
we could switch it back.. but wonder if we gotta worry about that? guess wait till we see an issue instead of preoptmizing?
Jamie Clarke
@jamie94bc
if you've already made the change leave it for now!
i'm having fun with SQL joins and exists - deciding to do the join before exists
which is bad news
Blake Niemyjski
@niemyjski
:(
Jamie Clarke
@jamie94bc
i think it's because i have an or condition - ie. if column = x or exists
nice when things go from minutes to milliseconds though! :smiley:
Blake Niemyjski
@niemyjski
:)
Blake Niemyjski
@niemyjski
@ejsmith I’m bumping the es-dev-01 up from a d1 to d2. it’s cpu is pegged at 98%
only 1 core and 3.5gb of ram isn’t cutting it
Eric J. Smith
@ejsmith
weren’t we on a d2 before?
Blake Niemyjski
@niemyjski
maybe