Cleanup a bit.

This commit is contained in:
Gregory Burd 2013-06-19 14:54:27 -04:00
parent 060abffcff
commit a3c54b1610

View file

@ -4,18 +4,16 @@
* Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved. * Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved.
* Author: Gregory Burd <greg@basho.com> <greg@burd.me> * Author: Gregory Burd <greg@basho.com> <greg@burd.me>
* *
* This file is provided to you under the Apache License, * This file is provided to you under the Apache License, Version 2.0 (the
* Version 2.0 (the "License"); you may not use this file * "License"); you may not use this file except in compliance with the License.
* except in compliance with the License. You may obtain * You may obtain a copy of the License at:
* a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, * Unless required by applicable law or agreed to in writing, software
* software distributed under the License is distributed on an * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* KIND, either express or implied. See the License for the * License for the specific language governing permissions and limitations
* specific language governing permissions and limitations
* under the License. * under the License.
*/ */
@ -34,8 +32,8 @@ extern "C" {
#define UNUSED(v) ((void)(v)) #define UNUSED(v) ((void)(v))
#endif #endif
#define ASYNC_NIF_MAX_WORKERS 8 #define ASYNC_NIF_MAX_WORKERS 1024
#define ASYNC_NIF_WORKER_QUEUE_SIZE 500 #define ASYNC_NIF_WORKER_QUEUE_SIZE 2000
#define ASYNC_NIF_MAX_QUEUED_REQS ASYNC_NIF_WORKER_QUEUE_SIZE * ASYNC_NIF_MAX_WORKERS #define ASYNC_NIF_MAX_QUEUED_REQS ASYNC_NIF_WORKER_QUEUE_SIZE * ASYNC_NIF_MAX_WORKERS
STAT_DECL(qwait, 1000); STAT_DECL(qwait, 1000);